import request from '@/utils/request'

// 查询班型信息列表
export function listClassModel(query) {
  return request({
    url: '/edu/classModel/list',
    method: 'get',
    params: query
  })
}

export function listAllClassModel() {
  return request({
    url: '/edu/classModel/listAll',
    method: 'get'
  })
}

// 查询班型信息详细
export function getClassModel(modelId) {
  return request({
    url: '/edu/classModel/' + modelId,
    method: 'get'
  })
}

// 新增班型信息
export function addClassModel(data) {
  return request({
    url: '/edu/classModel',
    method: 'post',
    data: data
  })
}

// 修改班型信息
export function updateClassModel(data) {
  return request({
    url: '/edu/classModel',
    method: 'put',
    data: data
  })
}

// 删除班型信息
export function delClassModel(modelId) {
  return request({
    url: '/edu/classModel/' + modelId,
    method: 'delete'
  })
}

// 导出班型信息
export function exportClassModel(query) {
  return request({
    url: '/edu/classModel/export',
    method: 'get',
    params: query
  })
}